﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Atomic.Web.Pages.Sys.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/Scripts/easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="/Scripts/easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(function () {
            /********************
            * 导航菜单
            *********************/
            $('#menus').tree({
                onSelect: function (node) {
                    if ($('.tree-node-selected a', $('#menus')).html() == null) {
                        //TODO:展开根目录
                    } else {
                        //清理页面旧代码
                        $('#clearAfter').nextAll().remove();
                        //加载新页面
                        $('#mainBody').panel('refresh', $('.tree-node-selected a', $('#menus')).attr('url'));
                        $('#mainBody').panel('setTitle', $(node.text).text());
                    }
                }
            });
            //body末尾加入此段代码，用户标记清除区域
            $('body').append('<div id="clearAfter"></div>');
        });
    </script>
</head>
<body class="easyui-layout">
    <form id="form1" runat="server">
    </form>
    <div region="north" style="height: 50px;">
    </div>
    <div region="west" split="true" title="Menus" style="width: 200px;">
        <ul id="menus">
            <li><span>系统管理</span>
                <ul>
                    <li><a href="javascript:void(0);" url="ResourceList.aspx">页面配置</a></li>
                    <li><a href="javascript:void(0);" url="ResourceListForFun.aspx">功能配置</a></li>
                    <li><a href="javascript:void(0);" url="RoleList.aspx">角色管理</a></li>
                </ul>
            </li>
            <li><span>用户管理</span>
                <ul>
                    <li><a href="javascript:void(0);" url="../UserTypeList.aspx">用户类型</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <div id="mainBody" region="center" title="content">
    </div>
</body>
</html>
